package io.bytestream;

import java.io.FileOutputStream;

public class Test2 {
    public static void main(String[] args) throws Exception{
        FileOutputStream fos = new FileOutputStream("AdvancedCode/src/io/bytestream/info/info.txt");

        // 写入字符数组
        fos.write(new byte[]{48,49,50,51,52});
        // 换行
        fos.write("\r\n".getBytes());
        // 写入字符串
        fos.write("ikun泥钛镁".getBytes());

        fos.close();

    }
}
